package cfs.databean;

import java.sql.Date;
import java.text.DateFormat;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.text.SimpleDateFormat;

public class FundPriceHistory {

	private int fund_id;
	private Date price_date;
	// private int price;
	private long price;

	public int getFund_id() {
		return fund_id;
	}

	public void setFund_id(int fund_id) {
		this.fund_id = fund_id;
	}

	public Date getPrice_date() {
		return price_date;
	}

	public void setPrice_date(Date price_date) {
		this.price_date = price_date;
	}

	public String formatDecimal(double price) {
		double finalOutput = price / 100;
		NumberFormat formatter = new DecimalFormat("#,##0.00");
		String format = formatter.format(finalOutput);
		return format;
	}

	public String formatDate(Date date) {
		DateFormat dateformat = new SimpleDateFormat("yyyy/MM/dd");
		String format = dateformat.format(date);
		return format;
	}

	public long getPrice() {
		return price;
	}

	public void setPrice(long price) {
		this.price = price;
	}
}
